#ifndef WEBSITECOMMAND_H
#define WEBSITECOMMAND_H

#include "Helper.h"
#include "SQLSystem.h"
#include "Command.h"
#include "InsertCommand.h"
#include "DeleteCommand.h"
#include "SelectCommand.h"
#include "VarcharCell.h"

#include <fstream>
#include <boost/tokenizer.hpp>

using namespace boost;
using std::ifstream;

class InsertCommand;
class DeleteCommand;
class SelectCommand;


class WebsiteCommand:public Command
{
public:
	WebsiteCommand(SQLSystem* sql);
	WebsiteCommand(void);
	~WebsiteCommand();
	virtual int execute(const string &str);
	int insertWebsite(const string &str);
	int deleteWebsite(const string &str);
	int searchWebsite(const string &str);
	void search(const string &path, const string &content);
	int sort(const string &str);
	Helper* helper;
private: 
	InsertCommand *cmdInsert;
	DeleteCommand *cmdDelete;
	SelectCommand *cmdSelect;
};

#endif
